package com.mm.ai.controller;

import com.mm.ai.service.AiService;
import com.mm.common.annotation.Log;
import com.mm.common.domain.po.Result;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

/**
 * @BelongsProject: 8.mindmap
 * @BelongsPackage: com.mm.ai.controller
 * @Author : 游在海里的鱼
 * @CreateTime : 2024-05-17  16:25
 * @Version : 1.0
 * @ClassName : TODO
 * @Description : TODO
 */
@Slf4j
@RestController
@RequestMapping("/ai")
@RequiredArgsConstructor
public class AiController {

    private final AiService aiService;

    @Log(name = "对话3.5")
    @GetMapping("/chatGPT3")
    public Result chat3(@RequestParam("chat")String chat){
        return aiService.chat3(chat);
    }

    @Log(name = "对话4.0")
    @GetMapping("/chatGPT4")
    public Result chat4(String chat){
        return aiService.chat4(chat);
    }


}
